#include <iostream>
#include "golf.h"

/**
 * 多文件程序
 */
int main()
{
    golf g1;
    setgolf(g1, "g1sssssss", 20);
    showgolf(g1);

    golf garr[3];
    int i = 0;
    while (i < 3)
    {
        if(!setgolf(garr[i]))
            continue;
        
        showgolf(garr[i]);
        ++i;
    }
    
    handicap(garr[1], 100);
    showgolf(garr[1]);    
    return 0;
}